﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Tong;

public partial class aspnet_admin_bock_News_preview : System.Web.UI.Page
{
    public TongUse TextData = new TongUse();
    public Tong.ThisSiteUse.SiteTong CId = new Tong.ThisSiteUse.SiteTong();
   // public Tong.ThisSiteUse dd =
    /// <summary>
    /// 用户存放数据的临时表
    /// </summary>
    DataTable MyDt = new DataTable();
    public string str = "";
    DataTable NewDt = new DataTable();
    protected void Page_Load(object sender, EventArgs e)
    {
        //try
        //{
            int id = 0;
            if (Request["id"] != null)
            {
                id = Convert.ToInt16(Request["id"]);
            }
            if (id > 0)
            {
                MyDt = TextData.SqlataSet("select * from [CX_NEWS_Class] where CX_NEWS_Class_id=" + CId.SqlOne("select CX_NEWS_Class_id from CX_NEWS where CX_NEWS_id=" + id, "CX_NEWS_Class_id") + "").Tables[0];
                Response.Redirect(MyDt.Rows[0]["CX_NEWS_Class_Itemplitate_Address"].ToString().Trim()+MyDt.Rows[0]["CX_NEWS_Class_Itemplitate_Parame"].ToString().Trim().Replace("$",id.ToString())+"&Class="+MyDt.Rows[0]["CX_NEWS_Class_id"].ToString());
             //  Response.Write("<br>"+ );
            }
        //}
        //catch
        //{
        //    Response.Write("非法请求！！");
        //    Response.End();
        //}
    }
}
